package com.aurora_manito.xiaomi.service;

import com.aurora_manito.xiaomi.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Aurora_Manito
 * @since 2020-05-27
 */
@Service
public interface UserService extends IService<User> {

    User findUserWithUsernameAndPassword(User user);        //通过用户名密码查找用户
    User login(User user);                                  //登录
    String register(User user);                             //注册用户
    String checkUserName(String username);                  //检查 用户名

    boolean activate(String email, String code);            //通过邮箱进行激活
}
